package com.atguigu.yygh.order.service;

import com.atguigu.yygh.model.order.OrderInfo;
import com.atguigu.yygh.model.order.PaymentInfo;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.Map;

/**
 * @Author zhmwi
 * @Date 2021/7/23
 * @Dersciption
 */
public interface PaymentService extends IService<PaymentInfo> {
    //保存交易记录
    void savePaymentInfo(OrderInfo orderInfo,Integer paymentType);

    //更改订单状态
    void paySuccess(String out_trade_no, Integer payment_type, Map<String, String> map);

    //查询交易记录
    PaymentInfo getPaymentInfo(Long orderId,Integer paymentType);
}
